<?php 
/**
 *
 * UCConfFace class file
 *
 * @category   UC
 * @author     刘海涛 <liuhaitao01@snda.com>
 * @copyright  1997-2010 SDO Group
 * @version    Release: 1.0.0
 * @link       
 * @license    http://www.sdo.com
 */

class UCConfFace 
{
	//头像上传零时存储路径
	const FACE_TEMP_PATH = '/tmp/uc/face/';
	const FACE_CHECK_REASON = '头像入库审核';

	const FACE_ERROR_SCOKET_CREATE = -1;
	const FACE_ERROR_SCOKET_CONNECT = -2;
	
	//根据用户id散列的存储服务器地址
	static function getServer()
	{

		if('TEST'==__UC_ENV)
		{
			return array(	'server' => array(
											0 => '10.10.85.3',
											1 => '10.10.85.3',
											2 => '10.10.85.3',
											3 => '10.10.85.3'
											),
							'port'	=> '8079',
						);
		}
		else if('DEV'==__UC_ENV)
		{
			return array(	'server' => array(
										0 => '10.129.128.14',
										1 => '10.129.128.14',
										2 => '10.129.128.14',
										3 => '10.129.128.14'
											),
							'port'	=> '8079',
						);
		}
		else
		{
			return array(	'server' => array(
										0 => '10.150.10.28',
										1 => '10.150.10.29',
										2 => '10.150.10.30',
										3 => '10.150.10.31'
											),
							'port'	=> '8079',
						);
		}
	}

}

?>